package com.cnswhy.cloud.server.core.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 商户基本信息
 * </p>
 *
 * @author cnswhy
 * @since 2021-06-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MerchSearchDTO", description = "商户查询信息")
public class MerchSearchDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String searchKey;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String serarchArea;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String searchRadius;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String searchType;
    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间")
    protected LocalDateTime createTime;
    protected Long count;
    //@RequestParam(name = "currentPage", defaultValue = "1")
    private Integer pageSize;
    //@RequestParam(name = "currentPage", defaultValue = "10")
    Integer currentPage;

}
